import request from '@/utils/request'

// 获取配置信息
export function getOne(origin) {
  return request({
    url: '/blog-front/back/configuration/' + origin,
    method: 'get'
  })
}

// 添加或更新配置信息
export function update(data) {
  return request({
    url: '/blog-front/back/configuration/update',
    method: 'post',
    data
  })
}
